#!/bin/bash

# 重置brew.git:
echo 'set homebrew'
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git

# 重置homebrew-core.git:
echo 'set homebrew-core'
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git

#echo 'homebrew upate'
#brew update

echo '在.bash_profile文件里删除：export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles'